<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>BOOK STORE</title>
<!-- TemplateEndEditable -->
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../js/jssite.js"></script>
<script type="text/javascript" src="../bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap-theme.css"/>
<link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="../styles/stylesite.css"/>
<link rel="stylesheet" type="text/css" href="../styles/nspn.css"/>
<!-- TemplateBeginEditable name="de" -->de<!-- TemplateEndEditable -->

</head>   
<body>
<div class="container">
  <div class="header clr ">
    <div class="clr container" ><!-- Button trigger modal -->
    <div id="mini_cart">
        <div class="p-cart"> <a href="/cart/" rev="cart" name="quickbuy_step0" class="p-button-cart"><span class="p-button-cart-helper"></span><span class="p-button-cart-span"><span class="p-text"><?php 
				if(isset($_SESSION['giohang']) && is_array($_SESSION['giohang'])){
					echo count($_SESSION['giohang']);
					}else echo "0"; 
					
					?> Sản phẩm - Giỏ hàng</span> <span class="p-text-quantity">0</span></span></a> </div>
        <div class="p-cart-dropdown">
		<span class="mini-cart-arrow"></span>
		<div class="mini-cart-wrap">
			<table class="compact-cart-table" width="100%">
			<?php  $tongtien=0;
			if(isset($_SESSION['giohang'])){
				
				for($i=0; $i<count($_SESSION['giohang']); $i++){
					$query = mysql_query("select * from sach where ID=".$_SESSION['giohang'][$i]['id']);
					$row = mysql_fetch_array($query);
					$query2=  mysql_query("SELECT * FROM gia_ban WHERE (ID_Sach='".$_SESSION['giohang'][$i]['id']."' and Thoi_gian<now()) order by Thoi_gian DESC limit 1");
					$row2 = mysql_fetch_array($query2);
					$tongtien=$tongtien + ($row2['Gia_ban'] * $_SESSION['giohang'][$i]['soluong']);
					?>
					<tbody><tr class="compact-cart-row">
							
							<td class="product-name" width="100%">
								<div><a href="cts.php?id=<?php echo $_SESSION['giohang'][$i]['id'];?>" class="product-title" title=""><?php echo $row['Ten_sach']?></a></div>
							</td>
							<td class="p-quantity" nowrap="nowrap"> x <?php echo $_SESSION['giohang'][$i]['soluong'];?></td>
							<td class="product-total" nowrap="nowrap">
								<span><span id="sec_price_979277487" class="none"><?php echo $row2['Gia_ban']?></span>&nbsp;<span class="none">₫</span></span>
							</td>
							<td>
								<a href="index.php?dispatch=checkout.delete&amp;cart_id=979277487&amp;quickbuy=1" class="cm-ajax" rev="mini_cart">Xóa</a>
							</td>
						</tr>
																	</tbody>
					
				<?php }}	?>																									</table>
		</div>
		<table class="compact-cart-summary" width="100%" border="0&quot;" cellspacing="0" cellpadding="0">
			<tbody><tr class="cart-subtotal">
				<td class="bold">Tổng cộng</td>
				<td class="right bold total-price"><span><?php echo product_price($tongtien); ?>&nbsp;₫</span>
</td>
			</tr>
		</tbody></table>

				<div class="clear right">
			<br>
			<a href="/cart/" rev="cart" name="quickbuy_step0" class="button-place-order-big">Đặt hàng</a>
		</div>
			</div>
        <!--mini_cart--></div>
    </div>
  </div>
  <!--header-->
  <div class="banner clr">
    <div class="logo col-xs-12"> <a class="logo" href="../xx"> <img src="../img/logosach.png" alt="BookStore"/> </a> </div>
    <!--End logo-->
    <div class="bannerright hidden-xs"> <a href="../xx"> <img src="../img/logosach2.png" alt="BookStore"/> </a> </div>
  </div>
  <!--Banner-->
  <div class="menuz">
    <div id='cssmenu'>
      <ul>
        <li class='active'><a href='../index.php'><span>Home</span></a></li>
        <li><a href='#'><span>Giới thiệu</span></a></li>
        <li class='has-sub'><a href='#'><span>Chủ đề sách</span></a>
          <ul>
            <li class='has-sub'><a href='#'><span>Product 1</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
            <li class='has-sub'><a href='#'><span>Product 2</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li class='has-sub'><a href='#'><span>Tin tức, khuyến mại</span></a>
          <ul>
            <li class='has-sub'><a href='#'><span>Product 1</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
            <li class='has-sub'><a href='#'><span>Product 2</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li class='has-sub'><a href='#'><span>Products</span></a>
          <ul>
            <li class='has-sub'><a href='#'><span>Product 1</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
            <li class='has-sub'><a href='#'><span>Product 2</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li class='has-sub'><a href='#'><span>Hướng dẫn</span></a>
          <ul>
            <li class='has-sub'><a href='#'><span>Product 1</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
            <li class='has-sub'><a href='#'><span>Product 2</span></a>
              <ul>
                <li><a href='#'><span>Sub Item</span></a></li>
                <li class='last'><a href='#'><span>Sub Item</span></a></li>
              </ul>
            </li>
          </ul>
        </li>
        <li class='last'><a href='#'><span>Liên hệ</span></a></li>
      </ul>
    </div>
  </div>
  <!--Menu-->
  <div > xxxxxxxxxxx</div>
  <!--Search-->
  
  <div class"content" style=" background-color: white; float: left; width: 100%; ">
    <div class="col-md-3" style="padding-left:0;">
      <div class="left-1">
        <div class="titleside"> <span class="glyphicon glyphicon-tint"></span>Sản phẩm tiêu biểu</div>
        <div> xin chào anh chị em</div>
      </div>
      <div class="left-2">
        <div class="titleside"><span class="glyphicon glyphicon-step-forward"></span> Liên lạc</div>
        <div> Xem phim HD miễn phí <br />
          Kiem tra ten mien<br />
          Dang ky ten mien<br />
          ten mien<br />
          hosting<br />
          Nhân Hòa<br />
          Thiet ke web<br />
        </div>
      </div>
      <div class="left-3">
        <div class="titleside"><span class="glyphicon glyphicon-search"></span> Liên lạc</div>
        <div> Xem phim HD miễn phí <br />
          Kiem tra ten mien<br />
          Dang ky ten mien<br />
          ten mien<br />
          hosting<br />
          Nhân Hòa<br />
          Thiet ke web<br />
        </div>
      </div>
      <div class="left-4">
        <div class="titleside">Liên lạc</div>
        <div> Xem phim HD miễn phí <br />
          Kiem tra ten mien<br />
          Dang ky ten mien<br />
          ten mien<br />
          hosting<br />
          Nhân Hòa<br />
          Thiet ke web<br />
        </div>
      </div>
      <div class="left-5">
        <div class="titleside">Liên lạc</div>
        <div> Xem phim HD miễn phí <br />
          Kiem tra ten mien<br />
          Dang ky ten mien<br />
          ten mien<br />
          hosting<br />
          Nhân Hòa<br />
          Thiet ke web<br />
        </div>
      </div>
    </div>
    <!--Content-Left-->
    <div class="col-md-9 shadow1" style="padding:0;">
      <div><!-- TemplateBeginEditable name="Noidung" -->Tin học kinh tế k54<!-- TemplateEndEditable --></div>
    </div>
    <!-- Content-Right--> 
  </div>
  <!--Content-->
  <div class="clr" style="float:left; padding:0">
    <div class="footerx">
      <div class="ft">
        <div class="row">
          <div class="col-md-4">
            <h4 class="ft-text text-center">Về Đối tác</h4>
            <p class="text-footer" style="text-align:justify">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            <center>
              <a href="#" class="btn btn-primary"><i class="glyphicon glyphicon-star-empty"></i> Khách hàng của chúng tôi</a>
            </center>
          </div>
          <div class="col-md-4">
            <h4 class="ft-text text-center">Về Đội ngũ</h4>
            <p class="text-footer" style="text-align:justify">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            <center>
              <a href="#" class="btn btn-success"><i class="glyphicon glyphicon-chevron-down"></i> Đội ngũ của chúng tôi</a>
            </center>
          </div>
          <div class="col-md-4">
            <h4 class="ft-text text-center">Về Giải Thưởng</h4>
            <p class="text-footer" style="text-align:justify">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            <center>
              <a href="#" class="btn btn-info"><i class="glyphicon glyphicon-user"></i> Liên hệ với chúng tôi</a>
            </center>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--Footer-->
  <div class="clr" style="float:left; width:100%">
    <p classstyle="color:#d3eced;"> Copyright @1999-2009 MINHKHAI.VN All rights Reserved. <br />
      Công Ty TNHH Minh Khai S.G (Nhà sách Minh Khai) <br />
      249 Nguyễn Thị Minh Khai, F. Nguyễn Cư Trinh, Q.1, Tp. Hồ Chí Minh<br />
      Giấy chứng nhận đăng ký kinh doanh số: 4102019159<br />
      Mã số doanh nghiệp 0303209716 - Đăng ký thay đổi lần 6 ngày 30/07/2010<br />
      Ðiện Thoại (08)39250590 - (08)39250591 -Fax: (08)39257837<br />
      E-mail:mk.book@minhkhai.vn hoặc mk.book@minhkhai.com.vn <br />
    </p>
  </div>
</div>
</div>
</body>
</html>